package com.xdq.service;

import com.xdq.bean.Address;
import com.xdq.bean.AddressNameCount;

import java.util.List;
import java.util.Optional;

/**
 * @author: 徐东强
 * @date: 2018/9/27 下午2:30
 * @description:
 **/
public interface AddressService {

    Optional<Address> save(Address address);

    Optional<List<Address>> getAll();

    Optional<Address> getOneById(String id);

    List<AddressNameCount> getCountByName();
}
